package com.test1;

import com.property.Book;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");

        User user= (User) context.getBean("user");
        user.add();
        //Book book= (Book) context.getBean("book");
        //book.test();
    }
}
